.bd-file-input-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    min-width: 250px;
    box-sizing: border-box;
    border-radius: var(--radius-sm);
    background-color: var(--input-background);
    border: 1px solid var(--input-border);
    padding: 0 4px;
    height: 40px;
}

.bd-file-input-wrap:hover {
    border-color: var(--bd-brand);
}

.bd-setting-item.inline .bd-file-input-wrap {
    max-width: 300px;
}

.bd-file-input {
    flex: 1;
    outline: none;
    color: var(--text-default);
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
}

.bd-file-input::-webkit-file-upload-button {
    height: 0;
    width: 0;
    padding: 0 !important;
    margin: 0;
    visibility: hidden;
    user-select: none;
    pointer-events: none;
}

.bd-file-input-wrap .bd-file-input-browse {
    padding: 7px 16px;
}

.bd-file-input-wrap .bd-file-input-clear {
    margin-left: 5px;

    /* background: none!important; */
    opacity: 0.5;
    padding-right: 4px !important;
}

.bd-file-input-wrap .bd-file-input-clear:hover {
    /* background: none; */
    opacity: 1;
}

.bd-file-input-wrap .bd-file-input-clear svg {
    width: 18px !important;
    height: 18px !important;
}

.bd-file-input-wrap.bd-file-input-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.bd-file-input-wrap.bd-file-input-disabled .bd-file-input-browse,
.bd-file-input-wrap.bd-file-input-disabled .bd-file-input,
.bd-file-input-wrap.bd-file-input-disabled .bd-file-input-clear {
    pointer-events: none;
}